package com.ccb.sc.common.modules.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseEntity;
import com.ccb.sc.common.modules.live.enums.LiveStreamingOrderExchangeStatus;
import com.ccb.sc.common.modules.live.enums.LiveStreamingOrderSource;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 订单转换记录表
 * </p>
 *
 * @author ken
 * @since 2022-07-31
 */
@Getter
@Setter
@TableName("tb_order_exchange")
public class OrderExchange extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 会员id
     */
    @TableField("member_id")
    private Long memberId;

    /**
     * 订单id
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 订单来源 1抖音 2小红书
     */
    @TableField("source")
    private LiveStreamingOrderSource source;

    /**
     * 直播间等级 1-50
     */
    @TableField("fans_level")
    private Integer fansLevel;

    /**
     * 确认时间
     */
    @TableField("confirm_time")
    private LocalDateTime confirmTime;

    /**
     * 状态 0未转换 1已转换
     */
    @TableField("exchange_status")
    private LiveStreamingOrderExchangeStatus exchangeStatus;

    /**
     * 是否删除
     */
    @TableField("deleted")
    private Boolean deleted;


}
